## 这个文件是使用qmake时所需的文件，就像是使用cmake中的CMakeLists.txt文件作用一样
## 这里使用cmake因此并不需要这个，这里只是讲解一下这个文件的一些配置

# QT包含的模块
QT       += core gui

# QT4版本及其以前 widgets模块是在QT gui模块内部的
# 4 版本以上将其分离出来了
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

# 在QT5.4版本之前，要使用c++11特性，比如使用lambda表达式，必须要加这一行
# QT高版本，这行可以不写
CONFIG += c++11

# 生成的程序名称
TARGET = HelloWorld

# 模板 应用程序的模板，默认为app
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

# 源文件
SOURCES += \
    main.cpp \
    widget.cpp

# 头文件
HEADERS += \
    widget.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

# 资源文件
# RESOURCES += \
#    res.qrc
#
# RC_FILE += \
#    res.rc
